package messages.logic;

import java.util.ArrayList;

import messages.data.CodeInjections;
import messages.data.ConversationsPhotographers;
import messages.ui.TesterDecision;
import testrunner.core.TestRunner;

public class MessagesTests {
	int startSize;
	
	public void run(ArrayList<String> codeInjection, int codeInjectionSize) {
		String testerDecision = getTestDecisiosFromUser();
		switch(testerDecision){
		case "codeInjections":
			CodeInjections codeInjections = new CodeInjections();
			codeInjections.runTests(codeInjection, codeInjectionSize);
			break;
		case "conversationPhotographers":
			ConversationsPhotographers conversationsPhotographers = new ConversationsPhotographers();
			conversationsPhotographers.runTests();
			break;
		default:
			TestRunner testRunner = new TestRunner();
			try {
				testRunner.run();
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
	}

	private String getTestDecisiosFromUser() {
		TesterDecision testsDecision = new TesterDecision();
		String decision = testsDecision.getTesterDecision();
		return decision;
	}
}
